home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ultra Pack
/
UltraComputing Technology Demos and Tools.iso
/
WWW
/
solidifier.run.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
1996-04-08
|
743b
|
31 lines
#!/bin/sh
#
# Look for a specific process
pidproc() {
pid=`/usr/bin/ps -ef |
/usr/bin/grep $1 |
/usr/bin/grep -v grep |
/usr/bin/awk '{print $2}'`
}
# If there is another lava proces running, kill it first...
pidproc 'lava'
if [ "$pid" != "" ]; then
kill -9 $pid;
fi
/bin/sleep 1
#
#
#
cd ../
ULTRA_PACK_HOME=`pwd`
echo $ULTRA_PACK_HOME
SOLIDIFIERHOME=$ULTRA_PACK_HOME/solidifier
XGLHOME=/opt/SUNWits/Graphics-sw/xgl
XILHOME=/opt/SUNWits/Graphics-sw/xil
LD_LIBRARY_PATH=$XGLHOME/lib:$XILHOME/lib:/usr/openwin/lib:/usr/lib:$LD_LIBRARY_PATH
PATH=$SOLIDIFIERHOME/bin:$PATH
export ULTRA_PACK_HOME SOLIDIFIERHOME PATH LD_LIBRARY_PATH
cd $SOLIDIFIERHOME/bin
$SOLIDIFIERHOME/bin/lava